﻿﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;

namespace CrossesGrav
{
    static class Lib
    {
     /*
        static public bool CompareStat(Cell t1, Cell t2) // новая версия, жрет клетки
        {
            if (
                 (t1.stat.Acessibility == t2.stat.Acessibility)
                 &&
               (t1.stat.Circle == t2.stat.Circle)
               &&
               (t1.stat.Cross == t2.stat.Cross)
               &&
               (t1.stat.Free == t2.stat.Free)
               )
            {
                return true;
            }
            else
            {
                return false;
            }
        }


        static public bool CompareTypes(object o1, object o2)
        {

            if (Equals(o1, o2))
                return true;
            else
                return false;
        }

        static public string Cell_IO_Checker(CrossesGrav.GameLogic.AI.Data c)
        {
            {
                // int n = Game.see_cells; // НОМЕР ПРОВЕРЯЕМОЙ КЛЕТКИ.
                // for (int j = 0; j < n.Length; j++)
                //{
                // if (c.WCells.Number == n[j])
                //{
                string temp = "";

                if (c.WCells.stat.Cross == true) temp = " X ";
                else temp = " O ";

                string t1 = "Отмеченные обнаружены: " + (char)13 + (char)10, t2 = "Пустые обнаружены:" + (char)13 + (char)10;

                for (int i = 0; i < c.Counts.Count; i++)
                {
                    t1 += i.ToString() + " -- " + c.Counts[i].ToString() + (char)13 + (char)10;
                    t2 += i.ToString() + " -- " + c.FreeCells[i].ToString() + (char)13 + (char)10;
                }

                string tempo = ("Клетка #" + c.WCells.Number.ToString() + "; ходит" + temp + (char)13 + (char)10 + t1 + (char)13 + (char)10 + t2);
                return tempo;
                //Form1.TestForm.Controls[0].Text += tempo;
                //}

                // }


            }
        }*/
    }
}